Fix faulty edge-case logic in NParallelTextCorpus#295
Conversation
|
I'm going to have to assume that this test catches the condition and would fail without the code changes. Is that correct and has that been verified? |
johnml1135
left a comment
There was a problem hiding this comment.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ddaspit and @Enkidu93)
Yes. I just re-verified. It exhibits the behavior Peter described when the code is reverted causing the test to fail. |
johnml1135
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @ddaspit)
Fixes #294
This was a bug that already existed in the previous
ParallelTextCorpusimplementation. We were relying on segment count as an indicator of a new range starting when we should just have used theIsRangeStartproperty since this isn't reliable when your target is totally empty.This change is